<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title> eventlist </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
    <?php htmlhead(); ?>
  </head>
  
  <body>
    
    <div class="actbar menuborder">
      <ul>
        
      </ul>
      <ul class="pages">
        <li><?php echo '共'.$navi['total'].'条 ',$navi['page'], '/', $navi['pages'];?>页</li>
        <li>
        <?php
          if($navi['page']==1) {
            echo('<a href="?view=event_list&page='.($navi['page']+1).'">下一页</a> ');
          }
          elseif($navi['page']==$navi['pages']){
            echo('<a href="?view=event_list&page='.($navi['page']-1).'">上一页</a> ');
          }
          else {
            echo('<a href="?view=event_list&page='.($navi['page']-1).'">上一页</a> ');
            echo('<a href="?view=event_list&page='.($navi['page']+1).'">下一页</a> ');
          }
        ?>
        </li>
      </ul>
    </div>
    
    <table class="table">
      <thead>
        <tr>
          <th style="width:80px;">DKP类型</th>
          <th style="width:100px;">对应副本</th>
          <th style="width:160px;">事件名称</th>
          <th style="width:120px;">开始时间</th>
          <th style="width:120px;">结束时间</th>
          <th style="width:auto;">备注</th>
          <th style="width:100px;">操作</th>
        </tr>        
      </thead>
      <tbody>
      <?php
        foreach($data as $_=>$v) {
          echo('<tr>');
          echo(' <td>'.$v['type_name'].'</td>');
          echo(' <td>'.$v['instance_name'].'</td>');
          echo(' <td>'.$v['event_name'].'</td>');
          echo(' <td>'.date("Y-m-d H:i:s",$v['event_start']).'</td>');
          echo(' <td>'.date("Y-m-d H:i:s",$v['event_end']).'</td>');
          echo(' <td>'.$v['event_note'].'</td>');
          echo(' <td>');
          echo('  <span class="acticon actedit"></span>');
          echo(' </td>');
          echo('</tr>');
        }
      ?>
      </tbody>
    </table>

    <script>
    <?php echo getTips(); ?>
    </script>
    
</body>
</html>